/*
 * Copyright (C) 2005, Velocityme Partnership
 * LoginHistoryActions.java
 *
 * Created on 20 June 2005, 10:42
 */

package com.velocityme.www.interfaces.nodeactions;

import com.velocityme.interfaces.*;
import com.velocityme.www.utility.NodeUtil;
import java.util.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;

/**
 *
 * @author  Robert
 */
public class LoginHistoryActions extends NodeActions {
    
    /** Creates a new instance of LoginHistoryActions */
    public LoginHistoryActions() {
    }
    
    public ActionForward showNode(ActionMapping mapping, 
                                  ActionForm form,
                                  HttpServletRequest request,
                                  HttpServletResponse response) throws Exception {
        HttpSession session = request.getSession();
        KeySession key = (KeySession)session.getAttribute("sessionKey");
        RemoteClientSession cs = RemoteClientSessionUtil.getHome().create();
        session.setAttribute("loginValues", cs.getAllUserLoginValues(key));
        return mapping.findForward("ACTION_DISPLAY");
    }
    
}
